# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=easyda
pkgver=7.0867f9b
pkgrel=3
groups=('blackarch' 'blackarch-automation' 'blackarch-scanner'
        'blackarch-recon')
pkgdesc='Easy Windows Domain Access Script.'
arch=('any')
url='https://github.com/nccgroup/easyda'
license=('GPL3')
depends=('bash' 'metasploit')
makedepends=('git')
source=("git+https://github.com/nccgroup/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

